package com.my.study.ext;

import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * 事件监听器
 *
 * @author Carlos
 * @version 1.0.0
 * @date 2021/11/30 8:02
 */
@Component
public class CustomApplicationListener implements ApplicationListener<CustomApplicationEvent> {

    @Override
    public void onApplicationEvent(CustomApplicationEvent event) {
        System.out.println(">>> 监听 事件：" + event);

    }
}
